package com.nbsaas.boot.vipcard.rest.convert;

import com.nbsaas.boot.vipcard.data.entity.VipCardTemplate;
import com.nbsaas.boot.vipcard.api.domain.simple.VipCardTemplateSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* -列表对象转换器
*/

public class VipCardTemplateSimpleConvert implements Converter<VipCardTemplateSimple, VipCardTemplate> {




@Override
public VipCardTemplateSimple convert(VipCardTemplate source) {
    VipCardTemplateSimple result = new VipCardTemplateSimple();

                result.setNote(source.getNote());
                result.setRebate(source.getRebate());
                result.setCardType(source.getCardType());
                result.setDiscount(source.getDiscount());
                result.setMemberNum(source.getMemberNum());
                result.setPriority(source.getPriority());
                result.setBackMoney(source.getBackMoney());
                result.setDemo(source.getDemo());
                result.setAddDate(source.getAddDate());
                result.setExpiryType(source.getExpiryType());
                result.setMoney(source.getMoney());
                result.setBackground(source.getBackground());
                result.setName(source.getName());
                result.setLogo(source.getLogo());
                result.setId(source.getId());
                result.setDay(source.getDay());
                result.setKey(source.getKey());
                result.setLastDate(source.getLastDate());


    return result;
}

}